package com.ruoyi.crm.controller;

import com.ruoyi.common.security.annotation.PreAuthorize;
import com.ruoyi.crm.domain.CsCustomerInfoVo;
import com.ruoyi.crm.service.CsCustomerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/cscuinfo")
public class CsCustomerInfoController {

    @Autowired
    private CsCustomerInfoService csCustomerInfoService;


    /**
     * 查询联系人列表
     */
    @PreAuthorize(hasPermi = "crm:cscustomer:list")
    @GetMapping("/{customerName}")
    public CsCustomerInfoVo list(@PathVariable("customerName") String customerName){
        CsCustomerInfoVo list = csCustomerInfoService.list(customerName);
        return list;
    }
}
